﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RapChieuPhim.DAO;
using System.Collections;
using RapChieuPhim.DTO;

namespace RapChieuPhim.BUS
{
    class ChucVuBUS
    {
        public static ChucVuDTO GetByID(int id)
        {
            ChucVuDAO cvDAO = new ChucVuDAO();
            return cvDAO.GetByID(id);
        }

        public static IList GetAll()
        {
            ChucVuDAO cvDAO = new ChucVuDAO();
            return cvDAO.GetAll();
        }

        public static void Insert(ChucVuDTO ChucVu)
        {
            ChucVuDAO cvDAO = new ChucVuDAO();
            cvDAO.Insert(ChucVu);
        }

        public static void Update(ChucVuDTO ChucVu)
        {
            ChucVuDAO cvDAO = new ChucVuDAO();
            cvDAO.Update(ChucVu);
        }

        public static void Delete(int id)
        {
            ChucVuDAO cvDAO = new ChucVuDAO();
            cvDAO.Delete(id);
        }
    }
}
